// LicensInfo.cpp : Implementation of CLicensInfo
#include "stdafx.h"
#include "EBASdll.h"
#include "LicensInfo.h"

/////////////////////////////////////////////////////////////////////////////
// CLicensInfo

STDMETHODIMP CLicensInfo::InterfaceSupportsErrorInfo(REFIID riid)
{
	static const IID* arr[] = 
	{
		&IID_ILicensInfo
	};
	for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		if (InlineIsEqualGUID(*arr[i],riid))
			return S_OK;
	}
	return S_FALSE;
}

STDMETHODIMP CLicensInfo::get_LicensTil(BSTR *pVal)
{
	*pVal = m_til.copy();
	return S_OK;
}

STDMETHODIMP CLicensInfo::get_LicensNummer(BSTR *pVal)
{
	*pVal = m_nummer.copy();
	return S_OK;
}

STDMETHODIMP CLicensInfo::get_LicensType(BSTR *pVal)
{
	*pVal = m_type.copy();
	return S_OK;
}

STDMETHODIMP CLicensInfo::get_LicensSlut(BSTR *pVal)
{
	*pVal = m_slut.copy();
	return S_OK;
}
